home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsITXTToHTMLConv.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  118 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsITXTToHTMLConv.idl
  3.  */
  4.  
  5. #ifndef __gen_nsITXTToHTMLConv_h__
  6. #define __gen_nsITXTToHTMLConv_h__
  7.  
  8.  
  9. #ifndef __gen_nsIStreamConverter_h__
  10. #include "nsIStreamConverter.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsrootidl_h__
  14. #include "nsrootidl.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsITXTToHTMLConv */
  23. #define NS_ITXTTOHTMLCONV_IID_STR "933355f6-1dd2-11b2-a9b0-d335b9e35983"
  24.  
  25. #define NS_ITXTTOHTMLCONV_IID \
  26.   {0x933355f6, 0x1dd2, 0x11b2, \
  27.     { 0xa9, 0xb0, 0xd3, 0x35, 0xb9, 0xe3, 0x59, 0x83 }}
  28.  
  29. class NS_NO_VTABLE nsITXTToHTMLConv : public nsIStreamConverter {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITXTTOHTMLCONV_IID)
  33.  
  34.   /**
  35.    * @param text: Title to set for the HTML document.  Only applicable if
  36.    *              preFormatHTML(true) is called.
  37.    * @result      The given title will be used to form an HTML document
  38.    *              from the plain text document.
  39.    */
  40.   /* void setTitle (in wstring text); */
  41.   NS_IMETHOD SetTitle(const PRUnichar *text) = 0;
  42.  
  43.   /**
  44.    * @param value: true to use an HTML header and footer on the document,
  45.    *               false to omit it.
  46.    * @result       The document will use a header and footer if value is
  47.    *               true.
  48.    */
  49.   /* void preFormatHTML (in boolean value); */
  50.   NS_IMETHOD PreFormatHTML(PRBool value) = 0;
  51.  
  52. };
  53.  
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSITXTTOHTMLCONV \
  56.   NS_IMETHOD SetTitle(const PRUnichar *text); \
  57.   NS_IMETHOD PreFormatHTML(PRBool value); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSITXTTOHTMLCONV(_to) \
  61.   NS_IMETHOD SetTitle(const PRUnichar *text) { return _to SetTitle(text); } \
  62.   NS_IMETHOD PreFormatHTML(PRBool value) { return _to PreFormatHTML(value); } 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  65. #define NS_FORWARD_SAFE_NSITXTTOHTMLCONV(_to) \
  66.   NS_IMETHOD SetTitle(const PRUnichar *text) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(text); } \
  67.   NS_IMETHOD PreFormatHTML(PRBool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->PreFormatHTML(value); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class nsTXTToHTMLConv : public nsITXTToHTMLConv
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSITXTTOHTMLCONV
  78.  
  79.   nsTXTToHTMLConv();
  80.  
  81. private:
  82.   ~nsTXTToHTMLConv();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsTXTToHTMLConv, nsITXTToHTMLConv)
  90.  
  91. nsTXTToHTMLConv::nsTXTToHTMLConv()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. nsTXTToHTMLConv::~nsTXTToHTMLConv()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* void setTitle (in wstring text); */
  102. NS_IMETHODIMP nsTXTToHTMLConv::SetTitle(const PRUnichar *text)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* void preFormatHTML (in boolean value); */
  108. NS_IMETHODIMP nsTXTToHTMLConv::PreFormatHTML(PRBool value)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* End of implementation class template. */
  114. #endif
  115.  
  116.  
  117. #endif /* __gen_nsITXTToHTMLConv_h__ */
  118.